How can I modify my validation function to accept only numbers from 0 to 10

welcome to shbcf.ru